package com.itheima.group;

import java.io.IOException;
import java.net.*;

public class Client {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        String str ="你好,hello";
        byte[]  bytes = str.getBytes();
        InetAddress byName = InetAddress.getByName("224.0.1.0");
        int port =10010;
        DatagramPacket dp = new DatagramPacket(bytes,bytes.length,byName,port);
        ds.send(dp);
        ds.close();

    }
}
